<?php

return array(
    'urlManager' => array(
        'urlFormat' => 'path',
        'showScriptName' => false,
        'rules' => array(
            '/' => '/page',
            '404' => '/page/page/404',
            'signup' => '/user/registration',
            'signin' => '/user/login',
            'signout' => '/user/logout',
            'recovery' => '/user/recovery',
            'profile' => '/user/profile/edit',
            'feedback' => '/page/page/feedback',
            'info' => '/page/page/info',
            'faq' => '/page/page/faq',
            'changepassword' => '/user/profile/changepassword',
            'profile/flats' => '/flat',
            'profile/add-flat' => '/flat/flat/create',
            'profile/update-flat/<id:\d+>' => '/flat/flat/update',
            '<controller:[\w_-]+>/<id:\d+>'=>'/flat/flat/view',
            //поиск статической страницы должен быть в конце правил
            //'bisnes-arenda' => '/page/page',
            '<alias:[\w_-]+>' => '/page/page/catalog',
            '/' => '/page/page',
        ),
    ),
    'user'=>array(
            // enable cookie-based authentication
            'class' => 'WebUser',
            'allowAutoLogin'=>true,
            'loginUrl' => array('/user/login'),
        ),
);
?>
